package ru.evreke.service.game.active

import Game
import org.koin.core.context.GlobalContext
import ru.evreke.service.State

class ActiveGameService {
    private val state by GlobalContext.get().inject<State>()

    fun getActiveGame(gameId: String): Game? {
        return state.getActiveGames()[gameId]
    }

    fun addActiveGame(gameId: String, game: Game) {
        state.addActiveGame(gameId, game)
    }
}